//
//  DHTableViewCell.m
//  NavigationDemo
//
//  Created by 商广硕 on 2022/7/10.
//

#import "DHTableViewCell.h"
#import "DHGroup.h"
@interface DHTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *text1;
@property (weak, nonatomic) IBOutlet UILabel *text2;
@property (weak, nonatomic) IBOutlet UIImageView *img;
@property (weak, nonatomic) IBOutlet UIButton *btn;

@end


@implementation DHTableViewCell

+(instancetype)groupCellWithTableView:(UITableView *)tableView{
    static NSString *ID=@"cell_id";

    DHTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"DHTableViewCell" owner:nil options:nil]firstObject ] ;
    }
    return cell;
}

- (void)setGroup:(NSString *)group{
    _group=group;
    self.text1.text=group;
    self.img.image=[UIImage imageNamed:@"result"];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
